using System;
using System.Collections.Generic;
using System.Text;

namespace TidhiGanitam.DataModel
{
    public class DegreeEntity
    {

        protected double dDegrees;
        public DegreeEntity()
        {
            dDegrees = 0;
        }
        public DegreeEntity(DegreeEntity Degrees):this()
        {
            dDegrees = Degrees.dDegrees;
        }
        public DegreeEntity(double Degrees, double Minutes, double Seconds,
                double MilliSeconds)
        {
            dDegrees = GetDegreeValue(Degrees, Minutes, Seconds, MilliSeconds);

        }
        public DegreeEntity(double Degrees)
        {
            dDegrees = MathHelper.GetDegrees(Degrees);

        }
        private double GetDegreeValue(double Degrees, double Minutes, double Seconds,
                double MilliSeconds)
        {
            return Degrees + Minutes / 60 + Seconds / 3600 + MilliSeconds / 216000;
        } 
    }
}
